package com.aircms.dao;

import com.aircms.pojo.RolePermission;
import com.aircms.pojo.vo.RolePermissionVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;


@Component
public interface RolePermissionMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(RolePermission record);

    int insertSelective(RolePermission record);

    RolePermission selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(RolePermission record);

    int updateByPrimaryKey(RolePermission record);

    List<RolePermissionVo> getRolePermissionIdsByRoleIs(@Param("roleIds") String[] roleIds, @Param("type") Integer type);

    RolePermission selectByRoleIdAndPerimssionId(@Param("roleId") Integer roleId, @Param("permissionId") Integer permissionId);

    int deleteByRoleId(Integer roloId);
}